package com.lsh.oms.core.enums;

/**
 * Project Name: lsh-oms
 * Created by peter on 18/3/2.
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
public enum RunSystem {

    Applying("pro", "线上"),
    Waiting_Confirm_So("test", "测试"),
    Waiting_Submit_So("dev", "开发");

    private final String code;
    private final String name;

    RunSystem(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (RunSystem c : RunSystem.values()) {
            if (c.getCode().equals(code)) {
                return c.name;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
